
import { MongooseFactory } from "../kalend";
import { Schema } from "mongoose";

/** 用户领礼品记录表 */
const schema = MongooseFactory.Schema({
    status:{
        type: String,
        default: '未领取'
    },
    // 参与人
    userid: {
        type: Schema.Types.ObjectId,
        ref: 'customer_account'
    },
    // 发放人
    sendid: {
        type: Schema.Types.ObjectId,
        ref: 'customer_account'
    },
    nickname:{
        type: String
    },
    // 领取人手机号
    phone:{
        type: String
    },
    // 发放人手机号
    sendphone: {
        type: String
    },
    // 奖品名称
    remarks: {
        type: String,
        default:'洗衣液'
    }
});



export const gifthistoryModel = MongooseFactory.Model("gifthistory", schema);